#include <MainWindow.h>

#include <QTranslator>
#include <QLocale>
#include <QLibraryInfo>
#include <QTextCodec>
 
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
 
	QString locale = QLocale::system().name().section('_', 0, 0);
    QTranslator translator;
    translator.load(QString("qt_") + locale, QLibraryInfo::location(QLibraryInfo::TranslationsPath));
    app.installTranslator(&translator);

	QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
    QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));

	MainWindow toto;
    toto.show();

	
 
    return app.exec();
}
